<div class="components_AiEditor_AiEditor">
    <div v-if="env=='dev'" class="aiEditorBtn" @click="open">源</div>
    <el-dialog
        title="源代码编辑"
        :visible.sync="visible"
        width="90%">
        <el-tabs v-model="activeName">
            <el-tab-pane label="源代码" name="code">
                <textarea class="aiEditor" v-model="code"></textarea>
            </el-tab-pane>
            <!-- <el-tab-pane label="AI" name="ai">
                <textarea class="aiEditor"></textarea>
            </el-tab-pane> -->
        </el-tabs>
        <span slot="footer" class="dialog-footer">
            <el-button @click="visible = false">取 消</el-button>
            <el-button type="primary" @click="submit">保 存</el-button>
        </span>
    </el-dialog>
</div>
  